package com.zlz.ddns.seddns;

import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.zlz.ddns.seddns.remote.TencentCloudDNSPodRemoteService;
import com.zlz.ddns.seddns.service.DDnsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private DDnsService dDnsService;

    @GetMapping("/1")
    public String test() throws TencentCloudSDKException {
        dDnsService.refreshTencentCloudDNSPod();
        return "ok";
    }
}
